#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
int main()
{
    int pid;
    pid = fork();
    if(pid == 0){
        printf("Hello from the child --- PIO:%d ----- Parent PID:%d\n" , getpid(),getpid());
        sleep(10);
    }
    else{
        wait(NULL);
        printf("Hello from the Parent --- PID:%d ---- Child PID:%d\n",getpid(),pid);
    }
    
    
    
    return 0;
}
         
        

